﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'TableConstraints')
	BEGIN
		DROP  Procedure  TableConstraints
	END

GO

CREATE Procedure TableConstraints
(
		@tableId uniqueidentifier
)
AS
Begin
	Select * from [Constraints] 
	where TAB_ID=@tableId
End

GO

/*
GRANT EXEC ON Stored_Procedure_Name TO PUBLIC

GO
*/

